Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Used dumped state instead of fork #1399

Merged
merged 3 commits into from
Aug 4, 2023
Merged

Conversation

LHerskind
Copy link
Contributor

@LHerskind LHerskind commented Aug 3, 2023

Fixes #1367

Use a chain dump instead of forking for uniswap tests.

The sandbox is still using the fork.

Checklist:

Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge.

  • If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag.
  • I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code.
  • Every change is related to the PR description.
  • I have linked this pull request to relevant issues (if any exist).

@LHerskind LHerskind marked this pull request as ready for review August 3, 2023 11:17
Copy link
Member

@Maddiaa0 Maddiaa0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you turn the e2e test back on in config yml

// anvil --fork-url https://mainnet.infura.io/v3/9928b52099854248b3a096be07a6b23c --fork-block-number 17514288 --chain-id 31337
// For CI, this is configured in `run_tests.sh` and `docker-compose.yml`

const dumpedState = 'src/dumps/uniswap_state';
const EXPECTED_FORKED_BLOCK = 0; //17514288;
Copy link
Contributor

@rahul-kothari rahul-kothari Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - add a comment on how dumped state doesn't change block number but it works nevertheless

@ludamad ludamad changed the title Used dumped state instead of fork fix: Used dumped state instead of fork Aug 3, 2023
Copy link
Member

@Maddiaa0 Maddiaa0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, however id prefer dumps to be in a fixtures folder

@LHerskind LHerskind force-pushed the lh/uniswap_dumped_state branch from 6e4bbe4 to 4d04a4f Compare August 4, 2023 07:36
@LHerskind
Copy link
Contributor Author

lgtm, however id prefer dumps to be in a fixtures folder

Will create a separate pr that fixed fixtures. There are also a couple of other files that would make sense to put in so would pollute this pr.

@LHerskind LHerskind merged commit c265e73 into master Aug 4, 2023
@LHerskind LHerskind deleted the lh/uniswap_dumped_state branch August 4, 2023 07:52
codygunton pushed a commit that referenced this pull request Jan 23, 2024
* Updated fork block (#1396)

* Updated fork block

* Set redeploy flag

* Redploy dev net (#1398)

* Force redeploy (#1399)

Co-authored-by: joss-aztec <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[ci] Reenable uniswap e2e tests
3 participants